package com.fizzkai.p2p.bussness.service;

import com.fizzkai.p2p.bussness.domain.BidRequest;
import com.fizzkai.p2p.core.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface IBidRequestService {
    int save(BidRequest entity);
    int update(BidRequest entity);
    BidRequest get(Long id);
    PageInfo<BidRequest> query(QueryObject qo);

    // 申请 普通标
    void apply(BidRequest br);

    // 发标前 审核
    void publishAudit(Long id, Integer state, Date publishTime, String remark);

    List<BidRequest> queryPublicPendingBidRequest();

    List<BidRequest> queryPublishPendingBidInOneHourRequest();

    List<BidRequest> queryNormalIndexData();

    // 投标 + money
    void bid(Long bidRequestId, BigDecimal amount);

    // 满标 一审
    void audit1(Long bidRequestId, Integer state, String remark);
    // 满标 二审
    void audit2(Long id, Integer state, String remark);
    // 申请发布 体验标
    void applyExp(BidRequest bidRequest);

    List<BidRequest> queryExpIndexData();
}
